using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;

namespace MyWeb.Data
{
    public class ImagesProducts
    {
        #region[Declare variables]
        private string _Id;
        private string _Name;
        private string _ProductsId;
        private string _Images;
        private string _Ord;
        private string _Active;
        #endregion
        #region[Public Properties]
        public string Id { get { return _Id; } set { _Id = value; } }
        public string Name { get { return _Name; } set { _Name = value; } }
        public string ProductsId { get { return _ProductsId; } set { _ProductsId = value; } }
        public string Images { get { return _Images; } set { _Images = value; } }
        public string Ord { get { return _Ord; } set { _Ord = value; } }
        public string Active { get { return _Active; } set { _Active = value; } }
        #endregion
        #region[ImagesProducts IDataReader]
        public ImagesProducts ImagesProductsIDataReader(IDataReader dr)
        {
            Data.ImagesProducts obj = new Data.ImagesProducts();
            obj.Id = (dr["Id"] is DBNull) ? string.Empty : dr["Id"].ToString();
            obj.Name = (dr["Name"] is DBNull) ? string.Empty : dr["Name"].ToString();
            obj.ProductsId = (dr["ProductsId"] is DBNull) ? string.Empty : dr["ProductsId"].ToString();
            obj.Images = (dr["Images"] is DBNull) ? string.Empty : dr["Images"].ToString();
            obj.Ord = (dr["Ord"] is DBNull) ? string.Empty : dr["Ord"].ToString();
            obj.Active = (dr["Active"] is DBNull) ? string.Empty : dr["Active"].ToString();
            return obj;
        }
        #endregion
    }
}